<script setup>
import TitleBar from '@/common/TitleBar.vue'
import '@/assets/font/Alimama.css'
const restart = () => {
  window.electronAPI.restart()
}
</script>

<template>
  <div class="titleBar">
    <TitleBar />
  </div>

  <div class="main">
    <button @click="restart">重启APP</button>
  </div>
</template>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-family: "Alimama";
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 100%;
  height: 100%;
  background-color: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.titleBar {
  height: 32px;
}

.main {
  height: calc(100% - 32px);
  display: flex;
  justify-content: center;
  align-items: center;

  .logo {
    transform: scale(0.6);
    animation: 1s ease-in-out 0s showLogo;
  }
}

@keyframes showLogo {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.6);
    opacity: 1;
  }
}
</style>